package cn.silver.module.message.controller;

import cn.silver.framework.mybatis.controller.BusController;
import cn.silver.module.message.bean.ChannelBean;
import cn.silver.module.message.domain.MsgChannel;
import cn.silver.module.message.param.ChannelParam;
import cn.silver.module.message.service.IMsgChannelService;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhouxiaobo
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/msg/channel")
@Tag(name = "消息管理-消息发送渠道管理")
public class MsgChannelController extends BusController<IMsgChannelService, MsgChannel, ChannelParam, ChannelBean> {

    @Override
    @Resource
    public void setBaseService(IMsgChannelService baseService) {
        this.setTitle("消息管理-消息发送渠道管理");
        this.setCode("msg:channel");
        this.setPermission("msg:channel");
        this.baseService = baseService;
    }
}
